home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4991 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: lrz-muenchen.de!news
  2. From: watzka@stat.uni-muenchen.de (Kurt Watzka)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Limit on #bytes inside of struct?
  5. Date: 11 Feb 1996 10:34:36 GMT
  6. Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
  7. Distribution: world
  8. Message-ID: <4fkgns$8t9@sparcserver.lrz-muenchen.de>
  9. References: <4feg1d$d4g@cville-srv.wam.umd.edu> <4ffg6b$ivd@sparcserver.lrz-muenchen.de> <4ffohq$1gb@mordred.gatech.edu> <9602091718.AA18553@ues5.cern.ch>
  10. NNTP-Posting-Host: sun2.lrz-muenchen.de
  11.  
  12. Dan Pop <danpop@ues5.cern.ch> writes:
  13.  
  14. >james@amber.biology.gatech.edu (James McIninch) writes:
  15.  
  16. >>ua302aa@lrz-muenchen.de wrote:
  17. >>: jsquires@wam.umd.edu (jeffrey d squires) writes:
  18. >>
  19. >>: >Is there a limit on the number of bytes allowed inside of a struct?
  20. >>
  21. >>: Yes, there is a limit on the number of bytes allowed in one 
  22. >>: object. That limit is 32k. 
  23. >>
  24. >>No. There is no limit. Individual implementations of compilers or OS's may
  25. >>impose a limit, but there is no limit that is integral to the C languag itself.
  26.  
  27. >James is right.  What the C language requires is that a compiler-imposed 
  28. >limit for the size of an object cannot be lower than 32k.
  29.  
  30. Yes, James is right, but you still cannot have objects of more than
  31. 32k in a _portable_ C program, so for portable programs there is
  32. a limit of 32k for the size of an object. You cannot rely on the
  33. assumption that all compilers will support larger objects.
  34.  
  35. Kurt
  36. --
  37. | Kurt Watzka                             Phone : +49-89-2180-6254
  38. | watzka@stat.uni-muenchen.de
  39. | ua302aa@sunmail.lrz-muenchen.de
  40.